package com.custom.jdbc.executebody;

import com.custom.jdbc.handler.TypeHandler;

import java.util.List;
import java.util.Map;

/**
 * SQL执行体
 * @author XiaoBai
 * @since 2024/1/22 0022 10:43
 */
public interface SqlExecutorBody {

    String getPrepareSql();

    boolean isSqlPrintSupport();

    Object[] getSqlParams();

    Map<String, TypeHandler<?>> getFieldTypeHandlerMap();

    List<String> getUpdateFields();

    default Class<?> getMappedType() {
        return Object.class;
    }

}
